package com.weme.mine.viewmode

import com.weme.common.base.BaseViewModel
import com.weme.common.network.NetWorkUrl
import dev.kratos.api.user_server.v1.CheckBlackRequest
import dev.kratos.api.user_server.v1.FansListRequest
import dev.kratos.api.user_server.v1.FollowListRequest
import dev.kratos.api.user_server.v1.GetAlbumRequest

class FollowViewMode: BaseViewModel() {

    fun  getFollowListApi(pageIndex: Int){
        sendNetworkRequest(FollowListRequest.newBuilder().setPage(pageIndex).setLimit(20).build().toByteArray(),
            NetWorkUrl.FollowList )
    }

    fun  getFansListApi(pageIndex: Int){
        sendNetworkRequest(FansListRequest.newBuilder().setPage(pageIndex).setLimit(20).build().toByteArray(),
            NetWorkUrl.FansList )
    }

    fun  isCheckBlack(req: CheckBlackRequest){
        sendNetworkRequest(req.toByteArray(),
            NetWorkUrl.CheckBlack )
    }
}